package com.jy.adscm.operation.cg.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.jy.adscm.exception.AdscmSystemException;
import com.jy.adscm.operation.cg.bean.CgOrder;
import com.jy.adscm.operation.cg.bean.CgPayOrder;
import com.jy.adscm.operation.cg.bean.CgTask;
import com.baomidou.mybatisplus.service.IService;
import com.jy.adscm.operation.cg.bean.QueryCgTask;
import com.jy.adscm.operation.mail.bean.MailBean;
import com.jy.adscm.security.utils.Token;

/**
 * <p>
 * 采购任务 服务类
 * </p>
 *
 * @author zyl
 * @since 2019-07-07
 */
public interface CgTaskService extends IService<CgTask> {

    boolean updateCgTask(CgTask cgTask, Token token);

    Page<CgTask> selectCgTask(Page<CgTask> page, QueryCgTask queryCgTask);

    CgOrder selectCgOrderBy(Integer id) throws AdscmSystemException;

    void sendEmail(MailBean mailBean) throws AdscmSystemException;

    Boolean startCgTask(Integer id)throws AdscmSystemException;

    CgPayOrder selectCgPayOrderBy(Integer id);

    Float selectTotals(QueryCgTask queryCgTask);
}
